package org.dregs.pojo.tuple;

import java.util.HashMap;
import java.util.Map;

public class Tuple4<$1,$2,$3,$4> {
    private $1 _1;
    private $2 _2;
    private $3 _3;
    private $4 _4;

    public Tuple4() {
    }

    public Tuple4($1 _1, $2 _2,$3 _3,$4 _4) {
        this._1 = _1;
        this._2 = _2;
        this._3 = _3;
        this._4 = _4;
    }

    public $1 get_1() {
        return _1;
    }

    public void set_1($1 _1) {
        this._1 = _1;
    }

    public $2 get_2() {
        return _2;
    }

    public void set_2($2 _2) {
        this._2 = _2;
    }

    public $3 get_3() {
        return _3;
    }

    public void set_3($3 _3) {
        this._3 = _3;
    }

    public $4 get_4() {
        return _4;
    }

    public void set_4($4 _4) {
        this._4 = _4;
    }

    public $1 _1() {
        return _1;
    }

    public void _1($1 _1) {
        this._1 = _1;
    }

    public $2 _2() {
        return _2;
    }

    public void _2($2 _2) {
        this._2 = _2;
    }
    public $3 _3() {
        return _3;
    }

    public void _3($3 _3) {
        this._3 = _3;
    }

    public $4 _4() {
        return _4;
    }

    public void _4($4 _4) {
        this._4 = _4;
    }

    public Map toMap(String _1_,String _2_,String _3_,String _4_){
        HashMap<String, Object> stringObjectMap = new HashMap<>();
        stringObjectMap.put(_1_,_1());
        stringObjectMap.put(_2_,_2());
        stringObjectMap.put(_3_,_3());
        stringObjectMap.put(_4_,_4());
        return stringObjectMap;
    }

    public Map toMap(Map stringObjectMap ,String _1_,String _2_,String _3_,String _4_){
        stringObjectMap.put(_1_,_1());
        stringObjectMap.put(_2_,_2());
        stringObjectMap.put(_3_,_3());
        stringObjectMap.put(_4_,_4());
        return stringObjectMap;
    }

    public static <$1,$2,$3,$4> Tuple4<$1,$2,$3,$4> initialize($1 _1, $2 _2,$3 _3,$4 _4){
        return new Tuple4<$1,$2,$3,$4>(_1, _2,_3,_4);
    }

}
